package com.jdjw.modules.controller;

import com.jdjw.common.ResponseResult;
import com.jdjw.modules.service.BidService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author fuqiang
 * @date 2021/3/24 9:17
 */
@Api(value = "API - WebDisplay", tags = "WebDisplayController")
@Slf4j
@RestController
@RequestMapping("/rest")
public class BidController {

    @Autowired
    BidService bidService;


    /**
     * 获取单位详情
     * @return
     */
    @ApiOperation(value = "项目数据", notes = "项目数据")
    @GetMapping("projectData")
    public ResponseResult getProjectData(String projectCode){
        return bidService.getProjectData(projectCode);
    }
}
